/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-28<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.param;

import javax.validation.constraints.NotBlank;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-28<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
public class RoleInsertParam {
    
    @NotBlank(message = "角色名称不能为空")
    private String roleName;
    
    @NotBlank(message = "角色描述少于5个字")
    private String roleDesc;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public RoleInsertParam() {
    }

    public RoleInsertParam(@NotBlank(message = "角色名称不能为空") String roleName,
            @NotBlank(message = "角色描述少于5个字") String roleDesc) {
        this.roleName = roleName;
        this.roleDesc = roleDesc;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("\"RoleInsertParam\":{\"roleName\":");
        builder.append(roleName);
        builder.append(", \"roleDesc\":");
        builder.append(roleDesc);
        builder.append("}");
        return builder.toString();
    }
    
    

}
